<?php 
header("Content-type: text/html; charset=utf-8");
$DBConnect =@mysql_connect('localhost','root','')
      or die('数据库无法连接');
mysql_set_charset('utf8');
@mysql_select_db('neu-video',$DBConnect);
//require_once('system/dbConn.php');
//$DBConnect = connect();
$typename = $_POST['typename'];
/*$data = array(
	'typename'=>$_POST['typename'];
	);*/
	$sql = "insert into videotype(typename)  value('$typename')";
	/*echo $sql;
	exit();*/
	$result = mysql_query($sql);
	if($result===FALSE){
		echo '失败';
	}
	else{
		echo '数据插入成功';
	}
 ?>